import { ComponentInternalInstance, getCurrentInstance } from 'vue';
// 解决当前页面全局this的问题
export function useCurrentInstance() {
    const { appContext } = getCurrentInstance() as ComponentInternalInstance
    const that = appContext.config.globalProperties
    return {
      that
    }
}